package com.salelogistics.basic.domain;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.salelogistics.common.core.annotation.Excel;
import com.salelogistics.common.core.web.domain.BaseEntity;

/**
 * 供应商对象 bas_supplier
 *
 * @author ruoyi
 * @date 2023-07-07
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
public class BasSupplier extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 供应商id
     */
    private Long supplierId;

    /**
     * 供应商编码
     */
    @Excel(name = "供应商编码")
    private String supplierCode;

    /**
     * 传真
     */
    @Excel(name = "传真")
    private String fax;

    /**
     * 通讯地址
     */
    @Excel(name = "通讯地址")
    private String mailingAddress;

    /**
     * 国税号
     */
    @Excel(name = "国税号")
    private String nationaltaxNumber;

    /**
     * 供应商名称
     */
    @Excel(name = "供应商名称")
    private String supplierName;

    /**
     * email地址
     */
    @Excel(name = "email地址")
    private String email;

    /**
     * 负责人
     */
    @Excel(name = "负责人")
    private String principal;

    /**
     * 开户行
     */
    @Excel(name = "开户行")
    private String bank;

    /**
     * 法人
     */
    @Excel(name = "法人")
    private String legal;

    /**
     * 联系人
     */
    @Excel(name = "联系人")
    private String contactPerson;

    /**
     * 供应类型
     */
    @Excel(name = "供应类型")
    private String supplyType;

    /**
     * 银行账号
     */
    @Excel(name = "银行账号")
    private String bankAccount;

    /**
     * 联系电话
     */
    @Excel(name = "联系电话")
    private String contactTel;

    /**
     * 手机号码
     */
    @Excel(name = "手机号码")
    private String phone;

    /**
     * 网址
     */
    @Excel(name = "网址")
    private String url;

    /**
     * 最近一次修改人
     */
    @Excel(name = "最近一次修改人")
    private String editedBy;

    /**
     * 最近一次修改时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最近一次修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private String editedTime;

    /**
     * 启用状态
     */
    @Excel(name = "启用状态")
    private Long status;

    /**
     * 删除状态
     */
    @Excel(name = "删除状态")
    private Long isDeleted;

    public void setSupplierId(Long supplierId) {
        this.supplierId = supplierId;
    }

    public Long getSupplierId() {
        return supplierId;
    }

    public void setSupplierCode(String supplierCode) {
        this.supplierCode = supplierCode;
    }

    public String getSupplierCode() {
        return supplierCode;
    }

    public void setFax(String fax) {
        this.fax = fax;
    }

    public String getFax() {
        return fax;
    }

    public void setMailingAddress(String mailingAddress) {
        this.mailingAddress = mailingAddress;
    }

    public String getMailingAddress() {
        return mailingAddress;
    }

    public void setNationaltaxNumber(String nationaltaxNumber) {
        this.nationaltaxNumber = nationaltaxNumber;
    }

    public String getNationaltaxNumber() {
        return nationaltaxNumber;
    }

    public void setSupplierName(String supplierName) {
        this.supplierName = supplierName;
    }

    public String getSupplierName() {
        return supplierName;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getEmail() {
        return email;
    }

    public void setPrincipal(String principal) {
        this.principal = principal;
    }

    public String getPrincipal() {
        return principal;
    }

    public void setBank(String bank) {
        this.bank = bank;
    }

    public String getBank() {
        return bank;
    }

    public void setLegal(String legal) {
        this.legal = legal;
    }

    public String getLegal() {
        return legal;
    }

    public void setContactPerson(String contactPerson) {
        this.contactPerson = contactPerson;
    }

    public String getContactPerson() {
        return contactPerson;
    }

    public void setSupplyType(String supplyType) {
        this.supplyType = supplyType;
    }

    public String getSupplyType() {
        return supplyType;
    }

    public void setBankAccount(String bankAccount) {
        this.bankAccount = bankAccount;
    }

    public String getBankAccount() {
        return bankAccount;
    }

    public void setContactTel(String contactTel) {
        this.contactTel = contactTel;
    }

    public String getContactTel() {
        return contactTel;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getPhone() {
        return phone;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getUrl() {
        return url;
    }

    public void setEditedBy(String editedBy) {
        this.editedBy = editedBy;
    }

    public String getEditedBy() {
        return editedBy;
    }

    public void setEditedTime(String editedTime) {
        this.editedTime = editedTime;
    }

    public String getEditedTime() {
        return editedTime;
    }

    public void setStatus(Long status) {
        this.status = status;
    }

    public Long getStatus() {
        return status;
    }

    public void setIsDeleted(Long isDeleted) {
        this.isDeleted = isDeleted;
    }

    public Long getIsDeleted() {
        return isDeleted;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("supplierId", getSupplierId())
                .append("supplierCode", getSupplierCode())
                .append("fax", getFax())
                .append("mailingAddress", getMailingAddress())
                .append("nationaltaxNumber", getNationaltaxNumber())
                .append("supplierName", getSupplierName())
                .append("email", getEmail())
                .append("principal", getPrincipal())
                .append("bank", getBank())
                .append("legal", getLegal())
                .append("contactPerson", getContactPerson())
                .append("supplyType", getSupplyType())
                .append("bankAccount", getBankAccount())
                .append("contactTel", getContactTel())
                .append("phone", getPhone())
                .append("url", getUrl())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("editedBy", getEditedBy())
                .append("editedTime", getEditedTime())
                .append("status", getStatus())
                .append("isDeleted", getIsDeleted())
                .toString();
    }
}
